-
Notifications
You must be signed in to change notification settings - Fork 87
Specify working pydantic version #272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a compatibility issue with pydantic by restricting its version range to exclude versions >= 2.12.0, which cause a TypeError: cannot specify both default and default_factory error.
- Updated pydantic dependency constraint to cap the maximum version at 2.12.0
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
WalkthroughUpdated the pydantic dependency version constraint in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨No code suggestions found for the PR. |
GabrielDrapor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks❤️
User description
Pip and other package manager started resolving the pydantic dependency(used by FastMCP i believe) to versions >= 2.12.0 which seems to break with the error:
TypeError: cannot specify both default and default_factoryas described in #271
Fixes #271
PR Type
Bug fix
Description
Restrict pydantic version to <2.12.0 to avoid compatibility issues
Resolves TypeError with default and default_factory conflict
Pins working pydantic version range in dependencies
Diagram Walkthrough
File Walkthrough
pyproject.toml
Constrain pydantic version upper boundpyproject.toml
>=2.5.1to>=2.5.1,<2.12.02.12.0
parameters
Summary by CodeRabbit